﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class DeliveryRobot : Robot
    {
        public double hours { get; set; }
        public DeliveryRobot(string name, double hours) : base(name)
        {
            this.hours = hours;
        }
        public DeliveryRobot()
        {

        }
        public override void Wooking()
        {
            Console.WriteLine("机器人名字{0},工作时长：{1}小时", base.name, this.hours);
        }
    }
}
